package com.akcome.apollo.repository;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import com.akcome.apollo.domain.DictionaryItem;

/**
 * 字典表Repository接口
 *
 * @author wn
 * @version $v: 1.0.0, $time:2017-12-26 08:49:00 Exp $
 */
public interface DictionaryItemRepository extends JpaRepository<DictionaryItem,Long>,JpaSpecificationExecutor<DictionaryItem> {

	List<DictionaryItem> findByCodeAndTextLike(String code,String text);
	
	List<DictionaryItem> findByCode(String code);
}
